package com.dengyin2000.javaeye.ordering.action;

import java.io.Serializable;

import org.hibernate.Session;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;

import com.dengyin2000.javaeye.ordering.entity.SnackShop;

@Name("viewSnackShopAction")
public class ViewSnackShopAction implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7534884781132729225L;

	private Long shopId;
	
	private SnackShop shop;
	
	@In("orderingDatabase")
	Session session;
	public void loadSnackShop() {
		shop = (SnackShop) session.load(SnackShop.class, shopId);
	}
	public SnackShop getShop() {
		return shop;
	}
	public Long getShopId() {
		return shopId;
	}
	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}
}
